package com.example.qxfw.dataBaseManager.nyzjk.controller;

import com.example.qxfw.common.SysResult;
import com.example.qxfw.common.entity.qx.SmallScaleStation;
import com.example.qxfw.dataBaseManager.nyzjk.service.QxyzbzqhzService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;

/************************************
 *
 * @author : HuangDeYin Jolly
 * @since : JDK 11
 * @Date : 2023/7/6  星期四   2:59
 * @description : 此类用来 气象因子
 ***************************************/
@ApiIgnore
@Slf4j
@Api(tags = "数据库管理-农业专家库-气象因子")
@RestController
@CrossOrigin
@RequestMapping("/QxyzbzqhzController")
public class QxyzbzqhzController {

    @Autowired
    private QxyzbzqhzService qxyzbzqhzService;

    @ApiOperation("根据stationid模糊查询")
    @GetMapping("getByStationID")
    public SysResult getByStationID(){
        List<SmallScaleStation> smallScaleStationList = this.qxyzbzqhzService.getByStationID("5%");
        return SysResult.success(smallScaleStationList);
    }


    /*@ApiOperation("根据stationids的集合查询")
    @GetMapping("selectListStationid")
    public SysResult selectListStationid(@RequestBody List<String> stationIds){

    }*/


}
